﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Fashion.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.Models.Model.RegisterModel>" %>
<%@ Import Namespace="Fashion.Common.Const" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Đăng ký</h2>
    <%Html.EnableClientValidation(); %>
    <%:Html.ValidationSummary() %>
    <p>
    <%:ViewData[ViewDataName.ErrorMessage]%>
    </p>
    <%using (Html.BeginForm())
      {%>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                Tài khoản
            </td>
            <td>
                <%:Html.TextBoxFor(i=>i.UserName) %>
                <%:Html.ValidationMessageFor(i=>i.UserName) %>
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu
            </td>
            <td>
                <%:Html.PasswordFor(i => i.Password)%>
                <%:Html.ValidationMessageFor(i => i.Password)%>
            </td>
        </tr>
        <tr>
            <td>
                Nhập lại mật khẩu
            </td>
            <td>
                <%:Html.PasswordFor(i => i.ConfirmPassword)%>
                <%:Html.ValidationMessageFor(i => i.ConfirmPassword)%>
            </td>
        </tr>
        <tr>
            <td>
                E-mail
            </td>
            <td>
                <%:Html.TextBoxFor(i=>i.Email) %>
                <%:Html.ValidationMessageFor(i => i.Email)%>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" name="Đăng ký" /></td>
        </tr>
    </table>
    <%}%>
</asp:Content>
